﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EA5 RID: 3749
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonDressScepter : IMessage<RogueCommonDressScepter>, IMessage, IEquatable<RogueCommonDressScepter>, IDeepCloneable<RogueCommonDressScepter>, IBufferMessage
	{
		// Token: 0x17002F94 RID: 12180
		// (get) Token: 0x0600A805 RID: 43013 RVA: 0x001C60DB File Offset: 0x001C42DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonDressScepter> Parser
		{
			get
			{
				return RogueCommonDressScepter._parser;
			}
		}

		// Token: 0x17002F95 RID: 12181
		// (get) Token: 0x0600A806 RID: 43014 RVA: 0x001C60E2 File Offset: 0x001C42E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonDressScepterReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F96 RID: 12182
		// (get) Token: 0x0600A807 RID: 43015 RVA: 0x001C60F4 File Offset: 0x001C42F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonDressScepter.Descriptor;
			}
		}

		// Token: 0x0600A808 RID: 43016 RVA: 0x001C60FB File Offset: 0x001C42FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDressScepter()
		{
		}

		// Token: 0x0600A809 RID: 43017 RVA: 0x001C6103 File Offset: 0x001C4303
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDressScepter(RogueCommonDressScepter other) : this()
		{
			this.updateScepterInfo_ = ((other.updateScepterInfo_ != null) ? other.updateScepterInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A80A RID: 43018 RVA: 0x001C6138 File Offset: 0x001C4338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDressScepter Clone()
		{
			return new RogueCommonDressScepter(this);
		}

		// Token: 0x17002F97 RID: 12183
		// (get) Token: 0x0600A80B RID: 43019 RVA: 0x001C6140 File Offset: 0x001C4340
		// (set) Token: 0x0600A80C RID: 43020 RVA: 0x001C6148 File Offset: 0x001C4348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameScepterInfo UpdateScepterInfo
		{
			get
			{
				return this.updateScepterInfo_;
			}
			set
			{
				this.updateScepterInfo_ = value;
			}
		}

		// Token: 0x0600A80D RID: 43021 RVA: 0x001C6151 File Offset: 0x001C4351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonDressScepter);
		}

		// Token: 0x0600A80E RID: 43022 RVA: 0x001C615F File Offset: 0x001C435F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonDressScepter other)
		{
			return other != null && (other == this || (object.Equals(this.UpdateScepterInfo, other.UpdateScepterInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A80F RID: 43023 RVA: 0x001C6194 File Offset: 0x001C4394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.updateScepterInfo_ != null)
			{
				num ^= this.UpdateScepterInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A810 RID: 43024 RVA: 0x001C61D0 File Offset: 0x001C43D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A811 RID: 43025 RVA: 0x001C61D8 File Offset: 0x001C43D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A812 RID: 43026 RVA: 0x001C61E1 File Offset: 0x001C43E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.updateScepterInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.UpdateScepterInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A813 RID: 43027 RVA: 0x001C6214 File Offset: 0x001C4414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.updateScepterInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.UpdateScepterInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A814 RID: 43028 RVA: 0x001C6254 File Offset: 0x001C4454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonDressScepter other)
		{
			if (other == null)
			{
				return;
			}
			if (other.updateScepterInfo_ != null)
			{
				if (this.updateScepterInfo_ == null)
				{
					this.UpdateScepterInfo = new RogueMagicGameScepterInfo();
				}
				this.UpdateScepterInfo.MergeFrom(other.UpdateScepterInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A815 RID: 43029 RVA: 0x001C62A8 File Offset: 0x001C44A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A816 RID: 43030 RVA: 0x001C62B4 File Offset: 0x001C44B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 90U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.updateScepterInfo_ == null)
					{
						this.UpdateScepterInfo = new RogueMagicGameScepterInfo();
					}
					input.ReadMessage(this.UpdateScepterInfo);
				}
			}
		}

		// Token: 0x04004451 RID: 17489
		private static readonly MessageParser<RogueCommonDressScepter> _parser = new MessageParser<RogueCommonDressScepter>(() => new RogueCommonDressScepter());

		// Token: 0x04004452 RID: 17490
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004453 RID: 17491
		public const int UpdateScepterInfoFieldNumber = 11;

		// Token: 0x04004454 RID: 17492
		private RogueMagicGameScepterInfo updateScepterInfo_;
	}
}
